﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;

namespace happroject
{
    public partial class anadirNuevaInterrupcion : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btNuevaInterrupcion_Click(object sender, EventArgs e)
        {
            try
            {

                ArrayList listaRecordatorio = new ArrayList();

                QuickDontForget nuevoRecordatorio = new QuickDontForget();
                nuevoRecordatorio.textoNoOlvidar = tbDescripcionRecordatorio.Text;                


                if (Session["dontForget"] == null)
                {
                    Session["dontForget"] = new ArrayList();
                }
                else
                {
                    listaRecordatorio = (ArrayList)Session["dontForget"];
                }

                listaRecordatorio.Add(nuevoRecordatorio);
                       

                Session["dontForget"] = listaRecordatorio;
            }
            catch (Exception excepcion)
            {

            }
            Response.Write("<script language='javascript'> { window.close();}</script>");
        }

        protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            Response.Write("<script language='javascript'> { window.close();}</script>");
        }

    }
}